{erl_opts, [debug_info]}.

{plugins, [
    {pc, {git, "https://github.com/emqx/port_compiler.git", {tag, "v1.11.1"}}}
]}.

{provider_hooks, [
    {pre, [
        {compile, {pc, compile}},
        {clean,   {pc, clean}}
    ]}
]}.

{port_specs, [
    {"priv/rebar3_run.so", [
        "c_src/*.c"
    ]}
]}.

{port_env, [
    {"(linux|darwin)", "CFLAGS", "$CFLAGS -O3 -std=gnu99 -finline-functions -Wall -Wmissing-prototypes"},
    {"win32", "CFLAGS", "$CFLAGS /LD /O2 /DNDEBUG"}
]}.


{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.

{xref_checks, [fail_on_warning, undefined_function_calls]}.
